<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>鉴赏详情</title>
</head>

<body>
	<div style="margin:0px auto;width:760px;background:#ddd;text-align:center;border: 1px solid #ddd">
	<div style="margin-top:20px;">
		<span>送鉴用户：</span><span class="nickname" style="margin-right: 20px"></span>
		<span>品类：</span><span class="category" style="margin-right: 20px"></span>
		<span>鉴定专家：</span><span class="zhuanjia"></span>
	</div>
		<div style="padding-top:10px">
			<h4>专家回复</h4>
			<div id="exprotRplay" style="text-align:left;margin-top:10px;padding:0 30px;">
				
			</div>
		</div>
		<div style="padding-top:10px">
			<h4>鉴赏信息</h4>
			<div id="appreciateInfo" style="text-align:left;margin-top:10px;padding:0 30px;">
				
			</div>
		</div>
		<div style="padding-top:10px">
			<h4>鉴赏图片</h4>
			<div id="imgShow" style="text-align:left;margin-top:10px;padding:0 30px 30px;">
				
			</div>
		</div>
</body>
<script type="text/html" id="imgList">
	{{each imgList as value i}}
		<div style="width:650px;margin:0 auto">
			<img style="width:100%" src={{value.url}} alt="">
		</div>
	{{/each}}
</script>
<script src="js/jquery-1.9.1.js"></script>
<script src="js/common.js"></script>
<script src="js/template.js"></script>
<script>
	$(function(){
		$(document).ready(function () {
			var arr=[]
			var str=window.location.href.substr(window.location.href.indexOf("=") + 1)
			arr=str.split("&")
			var id = parseInt(arr[0])
			$(".category").text(decodeURI(arr[1].substr(arr[1].indexOf("=")+1)))
			$(".zhuanjia").text(decodeURI(arr[2].substr(arr[2].indexOf("=")+1)))
			sendRequest({
				url:"appraisal/info",
				msg:{
					id:id
				},
				success:function(data){
					console.log(data)
					$(".nickname").text(data.msg.nickname)
					$("#exprotRplay").text(data.msg.replyText)
					$("#appreciateInfo").text(data.msg.description)
					var html=template("imgList",data.msg)
					$("#imgShow").html(html)
				}
			})
		})
	})

</script>
</html>